package com.onstar.cn.sqlite.entities;


import com.onstar.cn.sqlite.xutil.db.annotation.Column;
import com.onstar.cn.sqlite.xutil.db.annotation.Id;
import com.onstar.cn.sqlite.xutil.db.annotation.Table;
import com.onstar.cn.sqlite.xutil.db.annotation.Transient;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: RequestEventEntity
 * @Description: operateB2CReport entity
 * @author Xiaofeng Feng
 * @date 2015年8月13日 下午2:15:18
 */
/*
 * {"id":0,"functionID":"F0001","timestamp":"2015-07-28 16:47:08"
 * ,"vin":"hhhhhhhh","operation":"click","startTimestamp":"2015-07-28 16:47:08"
 * ,"endTimestamp":"2015-07-28 16:47:08","content":"content","role":"owner"}
 */

//"idpID": "ONSTARM50850147",
//		"startTimestamp": "2016-09-05 17:18:36.554",
//		"endTimestamp": "2016-09-05 17:18:36.554",
//		"timestamp": "2016-09-05 17:18:36.554",
//		"functionID": "F6032",
//		"vin": "LSGKR5WL0G0011E33",
//		"deviceId": "c48caf3b38d7d23a9733391ee84529b0a908b410",
//		"operation": "CLICK",
//		"deviceType": "iPhone OS 9.3.5",
//		"osType": "IPHONE",
//		"role": "OWNER",
//		"accountID": "1201765008",
//		"appVersion": "7.0.0",
//		"content": ""
@Table(name = "t_onstar_report_new")
public class RequestEventReportEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;
	public static final String TABLE_NAME = "t_onstar_report_new"; //表名
	public static final String TIME_STAMP = "timestamp";

	@Id
	@Column(column = "_id")
	private Integer id;
	@Column(column = "functionID")
	private String functionID;//functionid
	@Column(column = "timestamp")
	private String timestamp;//操作时间
	@Column(column = "vin")
	private String vin;//VIN
	@Column(column = "operation")
	private String operation;//操作:
	@Column(column = "startTimestamp")
	private String startTimestamp;//开始时间
	@Column(column = "endTimestamp")
	private String endTimestamp;//结束时间
	@Column(column = "content")
	private String content;//关键内容
	@Column(column = "role")
	private String role;//角色
//	新增给banner用
	@Column(column ="ipdID")
	private String idpID;
	//参照IOS，新增字段
	@Column(column ="deviceId")
	private String deviceId;
	@Column(column ="deviceType")
	private String deviceType;
	@Column(column ="osType")
	private String osType;
	@Column(column ="accountID")
	private String accountID;
	@Column(column ="appVersion")
	private String appVersion;
	@Transient
	private String daapContent;//给新report增加存储traceDTO的字段

	public String getDaapContent() {
		return daapContent;
	}

	public void setDaapContent(String daapContent) {
		this.daapContent = daapContent;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public String getOsType() {
		return osType;
	}

	public void setOsType(String osType) {
		this.osType = osType;
	}

	public String getAccountID() {
		return accountID;
	}

	public void setAccountID(String accountID) {
		this.accountID = accountID;
	}

	public String getAppVersion() {
		return appVersion;
	}

	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}

	public String getIdpID() {
		return idpID;
	}

	public void setIdpID(String idpID) {
		this.idpID = idpID;
	}

	@Transient
	private transient List<RequestEventReportEntity> data;//集合存储
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getFunctionID() {
		return functionID;
	}
	public void setFunctionID(String functionID) {
		this.functionID = functionID;
	}
	public String getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	public String getVin() {
		return vin;
	}
	public void setVin(String vin) {
		this.vin = vin;
	}
	public String getOperation() {
		return operation;
	}
	public void setOperation(String operation) {
		this.operation = operation;
	}
	public String getStartTimestamp() {
		return startTimestamp;
	}
	public void setStartTimestamp(String startTimestamp) {
		this.startTimestamp = startTimestamp;
	}
	public String getEndTimestamp() {
		return endTimestamp;
	}
	public void setEndTimestamp(String endTimestamp) {
		this.endTimestamp = endTimestamp;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	

	public List<RequestEventReportEntity> getData() {
		return data;
	}
	public void setData(List<RequestEventReportEntity> data) {
		this.data = data;
	}

//	@Override
//	public String toString() {
//		return "RequestEventReportEntity{" +
//				"id=" + id +
//				", functionID='" + functionID + '\'' +
//				", timestamp='" + timestamp + '\'' +
//				", vin='" + vin + '\'' +
//				", operation='" + operation + '\'' +
//				", startTimestamp='" + startTimestamp + '\'' +
//				", endTimestamp='" + endTimestamp + '\'' +
//				", content='" + content + '\'' +
//				", role='" + role + '\'' +
//				", idpID='" + idpID + '\'' +
//				", deviceId='" + deviceId + '\'' +
//				", deviceType='" + deviceType + '\'' +
//				", osType='" + osType + '\'' +
//				", accountID='" + accountID + '\'' +
//				", appVersion='" + appVersion + '\'' +
//				", daapContent='" + daapContent + '\'' +
//				", data=" + data +
//				'}';
//	}
}
